<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>


<c:forEach var="ShopOrder" items="${pageInfo.list}">
    <tr>
        <td width="9%">${ShopOrder.id}</td>
        <td width="9%">${ShopOrder.orderSn}</td>
        <td width="9%"><fmt:formatDate value="${ShopOrder.addTime}" pattern="yyyy年MM月dd日  HH:mm:ss" /></td>
        <td width="9%">${ShopOrder.userName}</td>
        <td width="9%">${ShopOrder.province}${ShopOrder.city}${ShopOrder.area}${ShopOrder.address}</td>
        <td width="9%">${ShopOrder.phone}</td>
        <td width="9%">
            <c:choose>
                <c:when test="${ShopOrder.shopState==0}">
                    未支付
                </c:when>
                <c:when test="${ShopOrder.shopState==2}">
                    已确认,已发货
                </c:when>
                <c:when test="${ShopOrder.shopState==-1}">
                    已取消
                </c:when>
                <c:when test="${ShopOrder.shopState==1}">
                    已支付,未确认
                </c:when>
            </c:choose>
        </td>
        <td width="9%">${ShopOrder.remark}</td>
        <td width="9%">${ShopOrder.userId}</td>
        <td width="9%">${ShopOrder.totalMoney}</td>
        <td width="9%">
            <a name="delete" href="${basePath}/admin/ShopOrder/delete?id=${ShopOrder.id}" class="tablelink" > 删除</a>
        </td>

    </tr>
</c:forEach>
<input type="hidden" id="pages" value="${pageInfo.pages }">
<input type="hidden" id="pageNum" value="${pageInfo.pageNum }">